/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.KDniao.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 物流跟踪信息Entity
 * @author OWEN
 * @version 2017-04-07
 */
public class LogisticTrackingTrajectory extends DataEntity<LogisticTrackingTrajectory> {
	
	private static final long serialVersionUID = 1L;
	private String shippercode;		// 物流公司编号
	private String logisticcode;		// 快递单号
	private String ordercode;		// 订单号
	private Date pushtime;		// 推送时间
	private Date createtime;		// 创建时间
	private String datas;		// 物流轨迹信息json数据
	private Date estimateddeliverytime;		// 预计到达时间
	private String success;		// 订阅是否成功
    private int state; //是否签收1是0否',
	public LogisticTrackingTrajectory() {
		super();
	}

	public LogisticTrackingTrajectory(String id){
		super(id);
	}

	@Length(min=1, max=64, message="物流公司编号长度必须介于 1 和 64 之间")
	public String getShippercode() {
		return shippercode;
	}

	public void setShippercode(String shippercode) {
		this.shippercode = shippercode;
	}
	
	@Length(min=1, max=225, message="快递单号长度必须介于 1 和 225 之间")
	public String getLogisticcode() {
		return logisticcode;
	}

	public void setLogisticcode(String logisticcode) {
		this.logisticcode = logisticcode;
	}
	
	@Length(min=1, max=64, message="订单号长度必须介于 1 和 64 之间")
	public String getOrdercode() {
		return ordercode;
	}

	public void setOrdercode(String ordercode) {
		this.ordercode = ordercode;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getPushtime() {
		return pushtime;
	}

	public void setPushtime(Date pushtime) {
		this.pushtime = pushtime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	
	public String getDatas() {
		return datas;
	}

	public void setDatas(String datas) {
		this.datas = datas;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEstimateddeliverytime() {
		return estimateddeliverytime;
	}

	public void setEstimateddeliverytime(Date estimateddeliverytime) {
		this.estimateddeliverytime = estimateddeliverytime;
	}
	
	@Length(min=0, max=10, message="订阅是否成功长度必须介于 0 和 10 之间")
	public String getSuccess() {
		return success;
	}

	public void setSuccess(String success) {
		this.success = success;
	}

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
	
}